<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	    <title><fmt:message key="mediaDetail.heading"/></title>
  </head>
  <body>
			    <ul>
				  <li class="titleonly"><img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="14" class="dot" />&gt;&gt;全部广告信息</li>
				</ul>
				 <ul>
				 <li>
				    <table width="100%"  border="0" cellpadding="0" cellspacing="0">
			          <tr>
					 	 <td class="tabletitle center" >序号</td>
						<td class="tabletitle center" >文件地址</td>
			            <td class="tabletitle center" >路径链接</td>
			            <td class="tabletitle center" >预览</td>
						<td class="tabletitlelast center">操作</td>
			          </tr>
			       		<form:form method="post" id="media1" name="media1"  commandName="media" action="editMedia.do" enctype="multipart/form-data">	
			           <input id="mediaId" name="mediaId" value="${media1.mediaId}" type="hidden"/>
			           <tr>
					   <td class="tableinfo center" >1</td>
					  <td class="tableinfo center"><input name="file" type="file" class="inputbox240" /></td>
						<td class="tableinfo center"><input name="url" id="url" type="text" class="inputbox240" value="${media1.url}"/><input name="sort" id="sort" type="hidden" value="1"/></td>
						<td class="tableinfo center"><img src="${ctxPath}/${media1.imageSrc}" width="150" height="75"/></td>
			            <td class="tableinfolast center">
			            <a href="#" onclick="document.getElementById('media1').submit();"><img src="${ctxPath}/css/style/base/image/amend.gif"  /> 上传</a><br />
						<a href="#" onclick="deleteObj('mediaId',${media1.mediaId},null,'${ctxPath}/admin/system/medias.do');"><img src="${ctxPath}/css/style/base/image/del.gif" width="10" height="10"/> 清空</a>
						</td>
			          </tr>
			        </form:form>
			        <form:form method="post" id="media2" name="media2" commandName="media" action="editMedia.do" enctype="multipart/form-data">	
					 <input id="mediaId" name="mediaId" value="${media2.mediaId}" type="hidden"/>
					  <tr>
					  <td class="tableinfo center" >2</td>
					  <td class="tableinfo center"><input name="file" type="file" class="inputbox240" /></td>
						<td class="tableinfo center"><input name="url" id="url" type="text" class="inputbox240" value="${media2.url}"/><input name="sort" id="sort" type="hidden" value="2"/></td>
						<td class="tableinfo center"><img src="${ctxPath}/${media2.imageSrc}" width="150" height="75"/></td>
			            <td class="tableinfolast center">
						 <a href="#" onclick="document.getElementById('media2').submit();"><img src="${ctxPath}/css/style/base/image/amend.gif"  /> 上传</a><br />
						<c:if test="${not empty media2.mediaId}">
						<a href="#" onclick="deleteObj('mediaId',${media2.mediaId},null,'${ctxPath}/admin/system/medias.do');"><img src="${ctxPath}/css/style/base/image/del.gif" width="10" height="10"/> 清空</a>
						</c:if>
						</td>
			          </tr>
			          </form:form>
			          <form:form method="post" id="media3" name="media3"  commandName="media" action="editMedia.do" enctype="multipart/form-data">	
					  <input id="mediaId" name="mediaId" value="${media3.mediaId}" type="hidden"/>
					  <tr>
					  <td class="tableinfo center" >3</td>
					   <td class="tableinfo center"><input name="file" type="file" class="inputbox240" /></td>
						<td class="tableinfo center"><input name="url" id="url" type="text" class="inputbox240" value="${media3.url}"/><input name="sort" id="sort" type="hidden" value="3"/></td>
						<td class="tableinfo center"><img src="${ctxPath}/${media3.imageSrc}" width="150" height="75"/></td>
			            <td class="tableinfolast center">
						 <a href="#" onclick="document.getElementById('media3').submit();"><img src="${ctxPath}/css/style/base/image/amend.gif"  /> 上传</a><br />
						<c:if test="${not empty media3.mediaId}">
						<a href="#" onclick="deleteObj('mediaId',${media3.mediaId},null,'${ctxPath}/admin/system/medias.do');"><img src="${ctxPath}/css/style/base/image/del.gif" width="10" height="10"/> 清空</a>
						</c:if>
						</td>
			          </tr>
			          </form:form>
			          <form:form method="post" id="media4" name="media4"  commandName="media" action="editMedia.do" enctype="multipart/form-data">	
					  <input id="mediaId" name="mediaId" value="${media4.mediaId}" type="hidden"/>
					  <tr>
					  <td class="tableinfo center" >4</td>
					   <td class="tableinfo center"><input name="file" type="file" class="inputbox240" /></td>
						<td class="tableinfo center"><input name="url" id="url" type="text" class="inputbox240" value="${media4.url}"/><input name="sort" id="sort" type="hidden" value="4"/></td>
						<td class="tableinfo center"><img src="${ctxPath}/${media4.imageSrc}" width="150" height="75"/></td>
			            <td class="tableinfolast center">
						 <a href="#" onclick="document.getElementById('media4').submit();"><img src="${ctxPath}/css/style/base/image/amend.gif"  /> 上传</a><br />
						<c:if test="${not empty media4.mediaId}">
						<a href="#" onclick="deleteObj('mediaId',${media4.mediaId},null,'${ctxPath}/admin/system/medias.do');"><img src="${ctxPath}/css/style/base/image/del.gif" width="10" height="10"/> 清空</a>
						</c:if>
						</td>
			          </tr>
			          </form:form>
			          <form:form method="post" id="media5" name="media5"  commandName="media" action="editMedia.do" enctype="multipart/form-data">	
					  <input id="mediaId" name="mediaId" value="${media5.mediaId}" type="hidden"/>
					  <tr>
					  <td class="tableinfo center" >5</td>
					   <td class="tableinfo center"><input name="file" type="file" class="inputbox240" /></td>
						<td class="tableinfo center"><input name="url" id="url" type="text" class="inputbox240" value="${media5.url}"/><input name="sort" id="sort" type="hidden" value="5"/></td>
						<td class="tableinfo center"><img src="${ctxPath}/${media5.imageSrc}" width="150" height="75"/></td>
			            <td class="tableinfolast center">
						 <a href="#" onclick="document.getElementById('media5').submit();"><img src="${ctxPath}/css/style/base/image/amend.gif"  /> 上传</a><br />
						<c:if test="${not empty media5.mediaId}">
						<a href="#" onclick="deleteObj('mediaId',${media5.mediaId},null,'${ctxPath}/admin/system/medias.do');"><img src="${ctxPath}/css/style/base/image/del.gif" width="10" height="10"/> 清空</a>
						</c:if>
						</td> 
			          </tr>
			          </form:form>
			          <form:form method="post" id="media6" name="media6"  commandName="media" action="editMedia.do" enctype="multipart/form-data">	
					  <input id="mediaId" name="mediaId" value="${media6.mediaId}" type="hidden"/>
					  <tr>
					  <td class="tableinfo center" >6</td>
					   <td class="tableinfo center"><input name="file" type="file" class="inputbox240" /></td>
						<td class="tableinfo center"><input name="url" id="url" type="text" class="inputbox240" value="${media6.url}"/><input name="sort" id="sort" type="hidden" value="6"/></td>
						<td class="tableinfo center"><img src="${ctxPath}/${media6.imageSrc}" width="150" height="75"/></td>
			            <td class="tableinfolast center">
						 <a href="#" onclick="document.getElementById('media6').submit();"><img src="${ctxPath}/css/style/base/image/amend.gif"  /> 上传</a><br />
						<c:if test="${not empty media6.mediaId}">
						<a href="#" onclick="deleteObj('mediaId',${media6.mediaId},null,'${ctxPath}/admin/system/medias.do');"><img src="${ctxPath}/css/style/base/image/del.gif" width="10" height="10"/> 清空</a>
						</c:if>
						</td>
			          </tr>
			          </form:form>
					  </table>
					  </li>
				 </ul>
  </body>
</html>